# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=py3-apsw
_pkgname=apsw
pkgver=3.32.2
_pkgrel=r1
pkgrel=0
pkgdesc="Another Python SQLite Wrapper"
url="https://github.com/rogerbinns/apsw"
arch="all"
license="Zlib"
depends="python3"
makedepends="python3-dev py3-setuptools sqlite-dev"
source="$pkgname-$pkgver-$_pkgrel.tar.gz::https://github.com/rogerbinns/apsw/archive/$pkgver-$_pkgrel.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver-$_pkgrel"

replaces=py-apsw # Backwards compatibility
provides=py-apsw=$pkgver-r$pkgrel # Backwards compatibility

build() {
	python3 setup.py build
}

check() {
	python3 setup.py check
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="f3412846d7ae2bf27cccf5a69217bc53ac1c321e0ce4ba3e2c47a302d58d7de6816fcc2a68746407bb963fa402064e7ff22ef8cba5ae2e8a415543715ffc510a  py3-apsw-3.32.2-r1.tar.gz"
